package com.zy.chapter10

/**
 * @author: zhaoyi
 * @create: 2020-06-11 22:18
 * @description: ${description}
 **/
abstract class SavingsAccount(double: Double) extends Account with Logger {

  this.blace = double

  def withdraw(amount: Double): Unit = {
    if (amount > blace) {
      log("======= 有卡余额不足请提醒他充值 ========")
    } else {
      log(s"****** 扣款$amount   *****************")
    }
  }

}
